package com.ty.xiaoyu.service;

import com.ty.xiaoyu.entity.User;
import com.ty.xiaoyu.exception.UserOperationException;

public interface UserService {

    // 通过userId搜索用户
    User getUserById(String userId);

    // 通过userName和password搜索用户
    User getUserByUserNameAndPassword(String UserName, String password) throws UserOperationException;

    // 新增用户
    void addUser(User user) throws UserOperationException;

    // 通过userName搜索用户
    void getUserByName(String userName) throws UserOperationException;

    // 更新用户信息
    void modifyUser(User user) throws UserOperationException;

    // 更新用户最后登陆、注销时间
    void modifyUserLastLog(User user) throws UserOperationException;
}
